package com.wkbb.sports.mapper;

import com.wkbb.common.base.BaseMapper;
import com.wkbb.sports.dto.PhysicalDto;
import com.wkbb.sports.model.HlifePhysical;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface HlifePhysicalMapper extends BaseMapper<HlifePhysical> {

    List<PhysicalDto> getPhysicalPageList(Map<String, Object> params);

    void delPhysical(Map<String, Object> params);
    
    List<PhysicalDto> getPhysicalById(Map<String, Object> params);

    List<PhysicalDto> queryPhysicalListByOrg(@Param("orgId") Long orgId, @Param("provinceId") Integer provinceId, @Param("cityId") Integer cityId);

	List<PhysicalDto> getPhysicalList();

	List<HlifePhysical> getPhysicalListByOrg(long sourceOrg);

    HlifePhysical checkName(Map<String, Object> params);

    void updatePhysicalState(HlifePhysical hlifePhysical);

    List<PhysicalDto> getOrgPhysicalList(Map<String, Object> params);

    List<PhysicalDto> queryScoreRule(@Param("gradeId") Long gradeId, @Param("projectKind") Byte projectKind);
}